package com.ihg.hiex.admin.entity.dto;

import org.apache.commons.lang3.StringUtils;

import com.ihg.hiex.entity.session.during.SessionCalibrationAnchorScore;

public class CalibrationAnchorScoreMapper {
    
    private String name;
    
    private String sDesc;
    
    private String cDesc;
    
    private String dnDesc;
    
    private String score;
    
    public CalibrationAnchorScoreMapper() {
    }
    
    public CalibrationAnchorScoreMapper(SessionCalibrationAnchorScore sessionCalibrationAnchorScore) {
        this.name = sessionCalibrationAnchorScore.getName();
        this.score = sessionCalibrationAnchorScore.getScore().getAlias();
        String[] result = StringUtils.split(this.name, ".");
        this.sDesc = result[0] + ".s";
        this.dnDesc = result[0] + ".dn";
        this.cDesc = result[0] + ".c";
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @return the sDesc
     */
    public String getsDesc() {
        return sDesc;
    }

    /**
     * @return the cDesc
     */
    public String getcDesc() {
        return cDesc;
    }

    /**
     * @return the dnDesc
     */
    public String getDnDesc() {
        return dnDesc;
    }

    /**
     * @return the score
     */
    public String getScore() {
        return score;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @param sDesc the sDesc to set
     */
    public void setsDesc(String sDesc) {
        this.sDesc = sDesc;
    }

    /**
     * @param cDesc the cDesc to set
     */
    public void setcDesc(String cDesc) {
        this.cDesc = cDesc;
    }

    /**
     * @param dnDesc the dnDesc to set
     */
    public void setDnDesc(String dnDesc) {
        this.dnDesc = dnDesc;
    }

    /**
     * @param score the score to set
     */
    public void setScore(String score) {
        this.score = score;
    }
}
